package org.kjtc.service;

import org.kjtc.entity.UserInfo;
import org.kjtc.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by Administrator on 2017/12/11 0011.
 */
@Service
public class UserService {

    @Autowired
    private UserMapper userMapper;

    public List<UserInfo> getAllUsers(){
        List<UserInfo> lists=userMapper.getAllUsers();
        return lists;
    }

    public int getAllUserID(UserInfo userInfo){
        return userMapper.getAllUserID(userInfo);
    }

    public int updateUserInfo(UserInfo userInfo){
        return userMapper.updateUserInfo(userInfo);
    }

    public int addUserInfo(UserInfo userInfo){
        return userMapper.addUserInfo(userInfo);
    }
}
